﻿@model IEnumerable<Classified.Domain.Entities.LocationCount>
@{
               
    var https = "http://";
    // var domain = ".krbclassified.com";
    var domainName = System.Configuration.ConfigurationManager.AppSettings["domainName"];
    var domain = "." + domainName + ".com";
}
@*<script type="text/javascript" src="../../Scripts/jquery.masonry.min.js"></script>*@
<script src="/Scripts/plugin.slideup-down.js" type="text/javascript"></script>
<h3 class="footer-header">
    ADSX24 Close to you</h3>
<ul class="footer-list-pack">
    <li class="slide-hold">
        <div class="btn-group">
            <button class="btn btn-info">
                @ViewBag.LocationName<span style="float: right" class="caret"></span></button>
        </div>
        <div class="locationlist">
            <div class="modal-header">
                <a class="close" id="closecountry" href="javascript:void(0);">×</a>
				<h3 class="slide-tile">
                    Select Country
                </h3>
            </div>
            <div class="modal-body">
                <ul class="nav nav-list masonry-holder">
                    @foreach (var i in Model)
                    {
                        <li class="box" style="float: left;"><a href="http://@i.Description.Replace(' ', '-')@domain">@i.Description (@i.Count)</a></li>
                    }
                </ul>
            </div>
        </div>
    </li>
    <li><a href="@Url.Action("GetAllState","Home")">Browse Cities</a></li>
    <li><a href="@Url.Action("Sitemap", "Home")">Sitemap</a></li>
</ul>
@if (ViewBag.LocationName != "")
{
    <script type="text/javascript">
        $(".@ViewBag.LocationName").addClass("nav-header");
           
    </script>
}
<script type="text/javascript">
    $("#closecountry").live("click", function () {
        $(".btn-group").click();
    });
    $(".footer-list-pack").slide({
        clicker: "btn-group",
        slider: "locationlist",
        actualHeight: "350px",
        zeroPadding: "0",
        timeInterval: "600"
    });


  $(function(){

      $('.masonry-holder').masonry({
      itemSelector: '.box',
      columnWidth: 0,
      isAnimated: true
    });
    
  });
</script>

